home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / wrldfctb.hqx / 1992 World Factbook Stack / background_2760.xml < prev    next >
Extensible Markup Language  |  1992-12-24  |  8KB  |  233 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2760</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <false /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <link rel="stylesheet" type="text/css" href="stylesheet_3233.css" />
  10.     <part>
  11.         <id>1</id>
  12.         <type>field</type>
  13.         <visible> <true /> </visible>
  14.         <dontWrap> <false /> </dontWrap>
  15.         <dontSearch> <false /> </dontSearch>
  16.         <sharedText> <false /> </sharedText>
  17.         <fixedLineHeight> <false /> </fixedLineHeight>
  18.         <autoTab> <false /> </autoTab>
  19.         <lockText> <true /> </lockText>
  20.         <rect>
  21.             <left>0</left>
  22.             <top>52</top>
  23.             <right>512</right>
  24.             <bottom>319</bottom>
  25.         </rect>
  26.         <style>scrolling</style>
  27.         <autoSelect> <false /> </autoSelect>
  28.         <showLines> <false /> </showLines>
  29.         <wideMargins> <true /> </wideMargins>
  30.         <multipleLines> <false /> </multipleLines>
  31.         <reservedFamily> 0 </reservedFamily>
  32.         <titleWidth>0</titleWidth>
  33.         <icon>0</icon>
  34.         <textAlign>left</textAlign>
  35.         <font>Monaco</font>
  36.         <textSize>9</textSize>
  37.         <textStyle>plain</textStyle>
  38.         <textHeight>12</textHeight>
  39.         <name>txt</name>
  40.         <script></script>
  41.     </part>
  42.     <part>
  43.         <id>12</id>
  44.         <type>button</type>
  45.         <visible> <true /> </visible>
  46.         <reserved5> 0 </reserved5>
  47.         <reserved4> 0 </reserved4>
  48.         <reserved3> 0 </reserved3>
  49.         <reserved2> 0 </reserved2>
  50.         <reserved1> 0 </reserved1>
  51.         <enabled> <true /> </enabled>
  52.         <rect>
  53.             <left>0</left>
  54.             <top>317</top>
  55.             <right>27</right>
  56.             <bottom>342</bottom>
  57.         </rect>
  58.         <style>transparent</style>
  59.         <showName> <false /> </showName>
  60.         <highlight> <false /> </highlight>
  61.         <autoHighlight> <true /> </autoHighlight>
  62.         <sharedHighlight> <true /> </sharedHighlight>
  63.         <family>0</family>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>1014</icon>
  66.         <textAlign>center</textAlign>
  67.         <font>Chicago</font>
  68.         <textSize>12</textSize>
  69.         <textStyle>plain</textStyle>
  70.         <name>Prev</name>
  71.         <script>on mouseUpvisual effect wipe rightgo prev cardend mouseUp</script>
  72.     </part>
  73.     <part>
  74.         <id>6</id>
  75.         <type>field</type>
  76.         <visible> <true /> </visible>
  77.         <dontWrap> <false /> </dontWrap>
  78.         <dontSearch> <false /> </dontSearch>
  79.         <sharedText> <false /> </sharedText>
  80.         <fixedLineHeight> <false /> </fixedLineHeight>
  81.         <autoTab> <false /> </autoTab>
  82.         <lockText> <true /> </lockText>
  83.         <rect>
  84.             <left>0</left>
  85.             <top>19</top>
  86.             <right>512</right>
  87.             <bottom>48</bottom>
  88.         </rect>
  89.         <style>transparent</style>
  90.         <autoSelect> <false /> </autoSelect>
  91.         <showLines> <false /> </showLines>
  92.         <wideMargins> <false /> </wideMargins>
  93.         <multipleLines> <false /> </multipleLines>
  94.         <reservedFamily> 0 </reservedFamily>
  95.         <titleWidth>0</titleWidth>
  96.         <icon>0</icon>
  97.         <textAlign>left</textAlign>
  98.         <font>Palatino</font>
  99.         <textSize>24</textSize>
  100.         <textStyle>bold</textStyle>
  101.         <textHeight>32</textHeight>
  102.         <name>Title</name>
  103.         <script></script>
  104.     </part>
  105.     <part>
  106.         <id>15</id>
  107.         <type>button</type>
  108.         <visible> <true /> </visible>
  109.         <reserved5> 0 </reserved5>
  110.         <reserved4> 0 </reserved4>
  111.         <reserved3> 0 </reserved3>
  112.         <reserved2> 0 </reserved2>
  113.         <reserved1> 0 </reserved1>
  114.         <enabled> <true /> </enabled>
  115.         <rect>
  116.             <left>485</left>
  117.             <top>317</top>
  118.             <right>512</right>
  119.             <bottom>342</bottom>
  120.         </rect>
  121.         <style>transparent</style>
  122.         <showName> <false /> </showName>
  123.         <highlight> <false /> </highlight>
  124.         <autoHighlight> <true /> </autoHighlight>
  125.         <sharedHighlight> <true /> </sharedHighlight>
  126.         <family>0</family>
  127.         <titleWidth>0</titleWidth>
  128.         <icon>1013</icon>
  129.         <textAlign>center</textAlign>
  130.         <font>Chicago</font>
  131.         <textSize>12</textSize>
  132.         <textStyle>plain</textStyle>
  133.         <name>Next</name>
  134.         <script>on mouseUpvisual effect wipe leftgo next cardend mouseUp</script>
  135.     </part>
  136.     <part>
  137.         <id>17</id>
  138.         <type>field</type>
  139.         <visible> <true /> </visible>
  140.         <dontWrap> <false /> </dontWrap>
  141.         <dontSearch> <false /> </dontSearch>
  142.         <sharedText> <false /> </sharedText>
  143.         <fixedLineHeight> <false /> </fixedLineHeight>
  144.         <autoTab> <false /> </autoTab>
  145.         <lockText> <true /> </lockText>
  146.         <rect>
  147.             <left>343</left>
  148.             <top>22</top>
  149.             <right>512</right>
  150.             <bottom>48</bottom>
  151.         </rect>
  152.         <style>transparent</style>
  153.         <autoSelect> <false /> </autoSelect>
  154.         <showLines> <false /> </showLines>
  155.         <wideMargins> <false /> </wideMargins>
  156.         <multipleLines> <false /> </multipleLines>
  157.         <reservedFamily> 0 </reservedFamily>
  158.         <titleWidth>0</titleWidth>
  159.         <icon>0</icon>
  160.         <textAlign>right</textAlign>
  161.         <font>Palatino</font>
  162.         <textSize>18</textSize>
  163.         <textStyle>plain</textStyle>
  164.         <textHeight>24</textHeight>
  165.         <name>Section</name>
  166.         <script></script>
  167.     </part>
  168.     <part>
  169.         <id>20</id>
  170.         <type>button</type>
  171.         <visible> <true /> </visible>
  172.         <reserved5> 0 </reserved5>
  173.         <reserved4> 0 </reserved4>
  174.         <reserved3> 0 </reserved3>
  175.         <reserved2> 0 </reserved2>
  176.         <reserved1> 0 </reserved1>
  177.         <enabled> <true /> </enabled>
  178.         <rect>
  179.             <left>137</left>
  180.             <top>320</top>
  181.             <right>191</right>
  182.             <bottom>342</bottom>
  183.         </rect>
  184.         <style>roundrect</style>
  185.         <showName> <true /> </showName>
  186.         <highlight> <false /> </highlight>
  187.         <autoHighlight> <true /> </autoHighlight>
  188.         <sharedHighlight> <true /> </sharedHighlight>
  189.         <family>0</family>
  190.         <titleWidth>0</titleWidth>
  191.         <icon>0</icon>
  192.         <textAlign>center</textAlign>
  193.         <font>Chicago</font>
  194.         <textSize>12</textSize>
  195.         <textStyle>plain</textStyle>
  196.         <name>Index</name>
  197.         <script>on mouseUpgo lastend mouseUp</script>
  198.     </part>
  199.     <part>
  200.         <id>21</id>
  201.         <type>button</type>
  202.         <visible> <true /> </visible>
  203.         <reserved5> 0 </reserved5>
  204.         <reserved4> 0 </reserved4>
  205.         <reserved3> 0 </reserved3>
  206.         <reserved2> 0 </reserved2>
  207.         <reserved1> 0 </reserved1>
  208.         <enabled> <true /> </enabled>
  209.         <rect>
  210.             <left>332</left>
  211.             <top>320</top>
  212.             <right>386</right>
  213.             <bottom>342</bottom>
  214.         </rect>
  215.         <style>roundrect</style>
  216.         <showName> <true /> </showName>
  217.         <highlight> <false /> </highlight>
  218.         <autoHighlight> <true /> </autoHighlight>
  219.         <sharedHighlight> <true /> </sharedHighlight>
  220.         <family>0</family>
  221.         <titleWidth>0</titleWidth>
  222.         <icon>0</icon>
  223.         <textAlign>center</textAlign>
  224.         <font>Chicago</font>
  225.         <textSize>12</textSize>
  226.         <textStyle>plain</textStyle>
  227.         <name>Copy</name>
  228.         <script>on mouseUpselect text of field txtdoMenu "Copy Text"select emptyend mouseUp</script>
  229.     </part>
  230.     <name>FB92bg</name>
  231.     <script>on importText-- bring in the text --- start a new card at every  instance of-- "THE WORLD FACTBOOK 1992" ... crude, but it may work!-- note --- file fname not closed at end!-- ^z 1992.12.20put "RaggedyAnn:Factbook92:Factbook92txt" into fnameopen file fnamerepeatdoMenu "New Card"repeatread from file fname until returnif It is empty then exit to HyperCardif It contains "THE WORLD FACTBOOK 1992" then exit repeatput It after field "txt"set cursor to busyend repeatend repeatend importTexton extractTitles-- pull out first two lines on this card and put words into the-- Title and Section fields... start on card 2; goes to end...-- ^z 1992.12.20repeat until the number of this card is 1put line 1 of field txt into line1put line 2 of field txt into line2if (char 1 of line 1 of field txt is linefeed) and┬¼(char 1 of line 2 of field txt is linefeed) thendelete line 1 to 2 of field txtend ifif char 1 of line 1 of field txt is linefeed thendelete char 1 of line 1 of field txtend ifif char 1 of line1 is linefeed then delete char 1 of line1if char 1 of line2 is linefeed then delete char 1 of line2repeat while (char 1 of line1 is space)delete char 1 of line1end repeatput line1 into field "Title"repeat while (char 1 of line2 is space)delete char 1 of line2end repeatput line2 into field "Section"go nextend repeatend extractTitles</script>
  232. </background>
  233.